package com.example.demotest.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public class ComplaintDto {

    private Integer defendantId;

    private Integer productId; // 可为空

    @NotBlank(message = "投诉内容不能为空")
    private String content;

    public Integer getDefendantId(){
        return defendantId;
    }

    public void setDefendantId(Integer defendantId){
        this.defendantId = defendantId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
